<template>
  <view class="i-statusBar" :style="{ height: statusBarHeight + 'px' }"></view>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
const statusBarHeight = ref(0)
const systemInfo = uni.getSystemInfoSync()
statusBarHeight.value = systemInfo.statusBarHeight || 0
</script>

<style lang="scss" scoped>
.i-statusBar {
  width: 100vw;
}
</style>
